﻿using System.Web.Mvc;
using Sportsbook.Domain.Repositories;

namespace Sportsbook.Website.Controllers
{
    public class LinesController : Controller
    {
        private readonly ILinesRepository repository;

        public LinesController(ILinesRepository repository)
        {
            this.repository = repository;
        }

        public ActionResult Index(string sportId, string filterType, string leagueId)
        {
            var model = repository.Get(sportId, filterType, leagueId);
            //if (Request.IsAjaxRequest()) return Json(model, JsonRequestBehavior.AllowGet);            
            return View(model);
        }
    }
}
